<?php
namespace yan\editor_frontend\editorxml;
use yii\helpers\Html;

class WebImagesWidget extends WebWidget{
	public function run(){
		ImagesAsset::register($this->view);
		$options = $this->options;
		$shtml = Html::beginTag('div', $options);
		
		foreach ((array)$this->value['value']['content'] as $key => $val) {
			$shtml .= '<div class="item">'.Html::img( $val ).'</div>';
		}
		$shtml .= Html::endTag('div');
		return $shtml;
	}
}